<?php
/***************************************************************
**                Linux Vod@home Streaming Server             ** 
****************************************************************
   Written by Nicolas VOISIN Aka DaNifty
****************************************************************/
include_once("./head.inc.php");
$args=explode('?',$_SERVER['QUERY_STRING']);
$vars="";
foreach($_GET as $key=>$value) {
	$var="$key=$value&";
	$vars.=$var;
}
if (strlen($vars)>0) $vars="?".substr($vars,0,strlen($vars)-1);


?>
<HTML>
<head>
<title>VoD@Home Streaming Service</title>
<link rel="StyleSheet" type="text/css" href="style.css"/>
<script type="text/javascript" language="JavaScript">
			function playerFrame() {
				return document.getElementById('playerFrame');
				/*
				var o=window.parent.document.getElementById('playerFrame');
				if (!o) o=window.opener.document.getElementById('playerFrame');
				return o;
				*/
			}
			function $(id) {
				return document.getElementById(id);
			}
			
			function showplayer() {
				var o=$('playerFrame'); o.style.visibility='visible'; 			
				var o=$('showplayerBt'); o.style.display='none'; 
				var o=$('hideplayerBt'); o.style.display='block';
			}

			function hideplayer() {
				var o=$('playerFrame'); o.style.visibility='hidden'; 			
				var o=$('showplayerBt'); o.style.display='block'; 
				var o=$('hideplayerBt'); o.style.display='none';
			}


</script>
<script type="text/javascript" language="JavaScript" src="xml-http.js"></script>
</head>

<body>
<img src="./fond_vodathome_3.jpg" class="fond"/>
<div id="playerFrame" style="z-index:100;visibility:hidden;position:absolute;top:7%;left:17%;width:65%;height:85%;border:ridge;background-color:#222222;">
<iframe id="player" frameborder=0 scrolling=auto bgcolor=#000000 style="top:18px;width:100%;height:98%;overflow:hidden">
</iframe>
</div>


<div class="serverStatus">
<pre id="serverStatus">
<?php echo file_get_contents('http://'.$_SERVER['SERVER_NAME'].':57431/STATUS'); ?>
</pre>
</div>


<div style="position:absolute;top:0px;left:87%;color:white;">
	<a id="showplayerBt" style="text-decoration:none;color:white" href="javascript:;" onclick="showplayer();">[Afficher le lecteur]</a>
	<a id="hideplayerBt" style="display:none;text-decoration:none;color:white" href="javascript:;" onclick="hideplayer();">[Cacher le lecteur]</a>
</div>


<div style="position:absolute;top:15px;left:12%;width:75%;height:75%;border:1px dotted #666666;overflow:none">
<table width=100% height=100% cellspacing=0 cellpadding=0 style="border:ridge;overflow:none">

	<tr >
		<td style="border-bottom:1px solid #AAAAAA; background-image:url('./fond_vodathome_3.jpg');" colspan=3 align=center ><h1 style="color:white;">Sources de medias</h1></td>
	</tr>
	
	<tr height=100%>
		<!--td class="rightBorder" width=33%><h2 class="tHeader">Cet ordinateur</h2><div id="localContents">&nbsp;</div></td-->
		<td class="rightBorder" width=50%><h2 class="tHeader">R&eacute;seau priv&eacute;</h2>
			<div id="lanContents">&nbsp;</div>
		</td>
		<td width=50% ><h2 class="tHeader">Cha&icirc;nes Internet</h2>
			<div id="internetContents">
				<UL class="videoList" >
					
				</UL>
			</div>
		</td>
	</tr>
	
</table>
</div>
<script type="text/javascript" language="JavaScript">
	loadContent('list_internet.php','','internetContents',rq_GET);
	loadContent('menu/interface_evoluee/sources.php','','lanContents',rq_GET);
	loadContent('play.php','','player');
</script>


</body>
</HTML>
